package com.starlink.model.dtomapper;

import com.starlink.model.domain.DepositRecordDO;
import com.starlink.model.request.DepositRecordRequest;
import com.starlink.model.vo.DepositRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DepositRecordDtoMapper {

    DepositRecordDtoMapper INSTANCE = Mappers.getMapper(DepositRecordDtoMapper.class);

    /**
    * DO to VO
    * @param depositRecordDO
    * @return
    */
    DepositRecordVO do2VO(DepositRecordDO depositRecordDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DepositRecordDO request2DO(DepositRecordRequest request);
}
